package com.lemon.stock.app

import androidx.room.Database
import androidx.room.RoomDatabase
import com.lemon.stock.dao.BatchDao
import com.lemon.stock.dao.BonusDao
import com.lemon.stock.dao.StockDao
import com.lemon.stock.dao.TradeDao
import com.lemon.stock.entity.Batch
import com.lemon.stock.entity.Bonus
import com.lemon.stock.entity.Stock
import com.lemon.stock.entity.Trade

@Database(entities = [Stock::class, Trade::class, Batch::class, Bonus::class], version = 2, exportSchema = false)
abstract class StockDatabase: RoomDatabase() {
    abstract fun stockDao(): StockDao
    abstract fun tradeDao(): TradeDao
    abstract fun batchDao(): BatchDao
    abstract fun bonusDao(): BonusDao
}